﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface IAppService
    {
        /// <summary>
        /// 获取应用列表
        /// </summary>
        /// <returns></returns>
        Task<List<AppResponse>> GetBasicApps(params string[] types);
        /// <summary>
        /// 应用管理窗体
        /// </summary>
        /// <returns></returns>
        Task<List<AppResponse>> Query();
        /// <summary>
        /// 获取id的应用详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<AppResponse> Detail(long id);
        /// <summary>
        /// 应用保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(AppSaveRequest request);
    }
}
